home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Errors / MountError.h < prev    next >
Text File  |  2000-06-23  |  314b  |  25 lines

  1. // MountError.h
  2.  
  3. #ifndef MountError_h
  4. #define MountError_h
  5.  
  6. #ifndef OSError_h
  7. #include "OSError.h"
  8. #endif
  9.  
  10. class MountError: public OSError
  11.   {
  12.     public:
  13.         MountError( OSErr error )
  14.           : OSError( error )
  15.           {}
  16.   };
  17.  
  18. inline void ThrowMountError( OSErr e )
  19.   {
  20.     if ( e != noErr )
  21.         throw MountError(e);
  22.   }
  23.  
  24. #endif
  25.